import { ICell } from './z-excel.interface';
export namespace NCellRender {
    export type Position = {
        x: number,
        y: number,
        w: number,
        h: number
    }
    export abstract class ARender {
        public cell: ICell;
        public abstract init(value: any):void;
        public abstract render(): void;
    }
    export abstract class AEdit {
        public ele: HTMLElement;
        constructor(public readonly row: number, public readonly col: number) {

        }
        public abstract initDom(ele: HTMLElement): void;
        public abstract initEdit(value: any, type: string):void;
        public finish(instance: AEdit, value: any, type?: string) {
            throw new Error('没有实现这个接口！');
        }
        // public abstract edit(): any;
        public abstract blur(): void;
        public destroy() {
            
        }
    }
    export abstract class AEditorExtends {
        public abstract copy(cell: ICell):void;
        public abstract copyText(cell: ICell):void;
        public abstract cut(cell: ICell): void;
        public abstract past(cell: ICell):void;
        public abstract pastText(cell: ICell):void;
        public abstract clear(cell: ICell):void;
    }
}